package com.allo2o.common.mapper;

import com.allo2o.common.VO.MerchantUserVO;
import com.allo2o.common.domain.MerchantUserDO;

import java.util.List;
import java.util.Map;

import com.allo2o.shared.web.result.Paging;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface MerchantUserDOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MerchantUserDO record);

    int insertSelective(MerchantUserDO record);

    MerchantUserDO selectByPrimaryKey(Integer id);

    MerchantUserDO selectByAccount(String account);

    List<MerchantUserDO> selectAccountsByBoss(String account);

    MerchantUserDO selectByAccountAndPwd(Map<String, String> accountAndPwd);

    int updateByPrimaryKeySelective(MerchantUserDO record);

    int updateByPrimaryKey(MerchantUserDO record);

    int updateCertStatus(String mobile);
    
    List<MerchantUserDO> queryListBySelective(@Param("merchantUser")MerchantUserVO merchantUser,@Param("paging")Paging paging);

    Map<String, Object> queryReferredCounts(String mobile);
}